package matchthreegame.gameLogic;

import java.util.ArrayList;

public class GameChain {

	public enum ChainType {
		ChainTypeHorizontal, ChainTypeVertical
	}
	
	public ArrayList<GameCookie> cookies;
	int score;
	public ChainType chainType;

	public void addCookie(GameCookie cookie) {
		
		if ( cookies == null ) {
			cookies = new ArrayList<GameCookie>();
		}
		cookies.add(cookie);
		
	}
	
	@Override
	public String toString() {
		
		return "Type: " + chainType + " cookies: " + cookies;
		
	}
	
	public int getChainRank() {
		
		return cookies.size();
		
	}
	
}
